//
//  UITableViewCell+HDMessageCell.h
//  app
//
//  Created by D on 15/5/26.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HDMessageModel.h"
#import "HDFailureButton.h"
#import "HDMsgLable.h"
#import "HDPictureButton.h"
#import "SDPhotoBrowser.h"

@protocol HDMessageCellDelegate <NSObject>

-(void)recieveNewMessage;
-(void)flowerShowWithState:(NSString*)state ActivityView:(UIActivityIndicatorView*)flower Button:(UIButton*)failBtn;
-(void)againSendMessage:(UIButton*)failBtn ActivityView:(UIActivityIndicatorView*) flower;
-(void)blowUpPicture:(UIButton*)btn;


@end

@interface  HDMessageCell : UITableViewCell<SDPhotoBrowserDelegate>

@property (nonatomic,strong) UIImageView * face;
@property (nonatomic,strong) UIImageView * backImage;
@property (nonatomic,strong) HDMsgLable * content;
@property (nonatomic,strong) UIImageView * picture;
@property (nonatomic,strong) NSString * uid;
@property (nonatomic,strong) UIActivityIndicatorView * flower;
@property (nonatomic,strong) HDFailureButton * failure;
@property (nonatomic,assign) CGFloat Hight;
@property (nonatomic,assign) CGFloat Wight;
@property (nonatomic,strong) NSMutableArray * scaleImages;
@property (nonatomic,strong) UIView * picFahterView;
@property (nonatomic,strong) id<HDMessageCellDelegate>delegate;

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier uid:(NSString*)uid view:(UIView*)view  scaleArrs:(NSMutableArray*)scalerArr highPictureArr:(NSMutableArray*)highPictureArr ;

-(void)cellWithModel:(HDMessageModel*)model otherFace:(NSString*)face rowNumber:(NSInteger)row;
+ (float) heightForString:(NSString *)value fontSize:(float)fontSize andWidth:(float)width;
@end
